package com.yanyeori.seata.client;

import com.yanyeori.framework.core.model.WebResponse;
import com.yanyeori.seata.Constant;
import com.yanyeori.seata.fallback.ServiceBFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenkuan
 * @version v1.0
 * @desc 测试接口
 * @date 20/8/07 10:29
 */
@FeignClient(name = Constant.APPLICATION_NAME, fallback = ServiceBFallBack.class)
public interface ServiceBClient {

    @PostMapping("/testController/rest")
    WebResponse rest(@RequestParam("param") String param);
}
